(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <unistd.h>
#include <fcntl.h>
int creat()
SYNOPSIS
const char * pathname
int mode

FUNCTION
Creates a file with the specified mode and name.

INPUTS
pathname
Path and filename of the file you want to open.
mode
The access flags.
RESULT
-1 for error or a file descriptor for use with write().

NOTES
If the filesystem doesn't allow to specify different access modes for users, groups and others, then the user modes are used.

This is the same as open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);

EXAMPLE
BUGS
SEE ALSO
open(), close(), write(), fopen()
INTERNALS
HISTORY
15.01.1997 digulla
Added functions for basic I/O (open, creat, close, read, write). Untested.